package com.ktgj.train.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.train.mapper.TrainOrderPayrecordMapper;
import com.ktgj.train.domain.TrainOrderPayrecord;
import com.ktgj.train.service.ITrainOrderPayrecordService;

/**
 * 订单付款记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-29
 */
@Service
public class TrainOrderPayrecordServiceImpl implements ITrainOrderPayrecordService 
{
    @Autowired
    private TrainOrderPayrecordMapper trainOrderPayrecordMapper;

    /**
     * 查询订单付款记录
     * 
     * @param recordid 订单付款记录ID
     * @return 订单付款记录
     */
    @Override
    public TrainOrderPayrecord selectTrainOrderPayrecordById(Long recordid)
    {
        return trainOrderPayrecordMapper.selectTrainOrderPayrecordById(recordid);
    }

    /**
     * 查询订单付款记录列表
     * 
     * @param trainOrderPayrecord 订单付款记录
     * @return 订单付款记录
     */
    @Override
    public List<TrainOrderPayrecord> selectTrainOrderPayrecordList(TrainOrderPayrecord trainOrderPayrecord)
    {
        return trainOrderPayrecordMapper.selectTrainOrderPayrecordList(trainOrderPayrecord);
    }

    /**
     * 新增订单付款记录
     * 
     * @param trainOrderPayrecord 订单付款记录
     * @return 结果
     */
    @Override
    public int insertTrainOrderPayrecord(TrainOrderPayrecord trainOrderPayrecord)
    {
        return trainOrderPayrecordMapper.insertTrainOrderPayrecord(trainOrderPayrecord);
    }

    /**
     * 修改订单付款记录
     * 
     * @param trainOrderPayrecord 订单付款记录
     * @return 结果
     */
    @Override
    public int updateTrainOrderPayrecord(TrainOrderPayrecord trainOrderPayrecord)
    {
        return trainOrderPayrecordMapper.updateTrainOrderPayrecord(trainOrderPayrecord);
    }

    /**
     * 批量删除订单付款记录
     * 
     * @param recordids 需要删除的订单付款记录ID
     * @return 结果
     */
    @Override
    public int deleteTrainOrderPayrecordByIds(Long[] recordids)
    {
        return trainOrderPayrecordMapper.deleteTrainOrderPayrecordByIds(recordids);
    }

    /**
     * 删除订单付款记录信息
     * 
     * @param recordid 订单付款记录ID
     * @return 结果
     */
    @Override
    public int deleteTrainOrderPayrecordById(Long recordid)
    {
        return trainOrderPayrecordMapper.deleteTrainOrderPayrecordById(recordid);
    }
}
